/**
 * Copyright (c) 2016-2019 人人开源 All rights reserved.
 *
 * https://www.renren.io
 *
 * 版权所有，侵权必究！
 */

package io.renren.modules.app.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;


@Data
@TableName("tb_btc_log")
public class BtcLogEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 翻仓基数
	 */
	public static double MAX=30;


	/**
	 * ID
	 */
	@TableId(type = IdType.AUTO)
	private Long id;

	/**
	 * 买入时间
	 */
	private Date inDate;

	/**
	 * 买入价格
	 */
	private BigDecimal inPrice;

	/**
	 * 买入余额
	 */
	private BigDecimal inMoney;

	/**
	 * 卖出时间
	 */
	private Date outDate;

	/**
	 * 卖出价格
	 */
	private BigDecimal outPrice;
	/**
	 * 卖出余额
	 */
	private BigDecimal outMoney;
	/**
	 * buy=多 sell=空
	 */
	private String direction;
	/**
	 * 倍数
	 */
	private int rate;
	/**
	 * 下单金额
	 */
	private BigDecimal amount;
	/**
	 * btcusdt
	 */
	private String txCurrency;

	/**
	 * 手续费
	 */
	private BigDecimal factorge;
}
